import com.edu.utils.RandomUtil;

import java.text.DecimalFormat;
import java.util.Random;

/**
 * @author 麦翔盛
 * @description: 测试随机数生成类
 * @date 2021/11/11 21:39
 */
public class testRandom {
    public static void main(String[] args) {
        Random random = new Random();
        DecimalFormat decimalFormat = new DecimalFormat("000000");
        String format = decimalFormat.format(random.nextInt(1000000));
        System.out.println(format);
    }
}
